/*
 * Copyright (C) 2018 Pingan, Inc. All Rights Reserved.
 */
package com.pingan.haofang.searchcloud.dashboard.dto;

import com.google.gson.annotations.SerializedName;

/**
 * @version 1.0
 * @description
 * @auther baojimin
 * @create 2018/4/18 16:55
 */
public class EsResultDto<T> {
    /**
     * 耗时
     */
    private Integer took;

    /**
     * 是否超时
     */
    @SerializedName("timed_out")
    private Boolean timedOut;

    private T aggregations;


    public Integer getTook() {
        return took;
    }

    public void setTook(Integer took) {
        this.took = took;
    }

    public Boolean getTimedOut() {
        return timedOut;
    }

    public void setTimedOut(Boolean timedOut) {
        this.timedOut = timedOut;
    }

    public T getAggregations() {
        return aggregations;
    }

    public void setAggregations(T aggregations) {
        this.aggregations = aggregations;
    }

    @Override
    public String toString() {
        return "EsResultDto{" +
                "took=" + took +
                ", timedOut=" + timedOut +
                ", aggregations=" + aggregations +
                '}';
    }
}
